package com.babble.subitem.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "Tag upd对象", description = "标签UDP表")
public class TagUpdDTO implements Serializable {

	private static final long serialVersionUID = 1L;


	/**
	 * 标签id
	 */
	@NotNull(message = "不能为空")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "标签id")
	private String id;
	/**
	 * 标签内容
	 */
	@Length(min = 2,max = 255,message="标签内容2-255")
	@ApiModelProperty(value = "标签内容")
	private String content;
	/**
	 * 标签点击数
	 */
	@Null(message = "点击数要为null")
	@ApiModelProperty(value = "标签点击数")
	private Integer clickCount;
	/**
	 * 排序字段，越大越靠前
	 */
	@ApiModelProperty(value = "排序字段，越大越靠前")
	private Integer sort;
	/**
	 * 状态
	 */
	@ApiModelProperty(value = "状态")
	private Integer status;
	/**
	 * 创建时间
	 */
	@Null
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	@Null
	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;


}
